var express = require('express');
var http = require('http');
var connect = require('connect');
var routes = require('./routes/main');
var bodyParser = require('body-parser');

var app = express();
app.set('port', 3000);

http.createServer(app).listen(app.get('port'), function(){
	console.log('Listening');
});

app.use(express.static(__dirname + '/public'));
//app.use(bodyParser());
app.use(bodyParser({limit: '50mb'}));
app.set('view engine', 'ejs');

routes(app);

